/-app
/-docs
/-files
/-imports
/-imports/codemirror
/-imports/knockout
/-imports/zip.js
/-persistence
/-typings ...
codemirror.addons.d.ts
codemirror.d.ts
knockout.d.ts
websql.d.ts
zip.d.ts
errors.js
functions.ts
index.html
try.js
x
 
1
declare module CodeMirror {
2
  
3
  interface CodeMirrorStatic {
4
    
5
    showHint(options: showHint.Options);
6
    
7
  }
8
​
9
  module showHint {
10
    
11
    interface Options {
12
      
13
      /**
14
       * A hinting function. It is possible to set the async property on a hinting function to true,
15
       * in which case it will be called with arguments (cm, callback, ?options),
16
       * and the completion interface will only be popped up when the hinting function calls the callback,
17
       * passing it the object holding the completions.
18
       */
19
      hint: Function;
20
​
21
      /**
22
       * Determines whether, when only a single completion is available, it is completed without showing the dialog.
23
       * Defaults to true.
24
       */
25
      completeSingle?: boolean;
26
​
27
      /**
28
       * Whether the pop - up should be horizontally aligned with the start of the word (true, default),
29
       * or with the cursor (false).
30
       */
31
      alignWithWord?: boolean;
32
​
33
      /**
34
       * When enabled (which is the default), the pop - up will close when the editor is unfocused.
35
       */
36
      closeOnUnfocus?: boolean;
37
​
38
      /**
39
       * Allows you to provide a custom key map of keys to be active when the pop - up is active.
40
       * The handlers will be called with an extra argument, a handle to the completion menu,
41
       * which has moveFocus(n), setFocus(n), pick(), and close() methods (see the source for details),
42
       * that can be used to change the focused element, pick the current element or close the menu.
43
       * Additionnaly menuSize() can give you access to the size of the current dropdown menu,
44
       * length give you the number of availlable completions,
45
       * and data give you full access to the completion returned by the hinting function.
46
       */
47
      customKeys?: any;
48
​
49
      /**
50
       * Like customKeys above, but the bindings will be added to the set of default bindings,
51
       * instead of replacing them.
52
       */
53
      extraKeys?: any;
54
​
55
    }
56
​
57
    interface Completion {
58
      
59
      /** The completion text. This is the only required property. */
60
      text: string;
61
​
62
      /** The text that should be displayed in the menu. */
63
      displayText?: string;
64
​
65
      /** A CSS class name to apply to the completion's line in the menu. */
52:16